package com.kylin.dal.entity.order;

import com.kylin.shared.common.entity.BaseEntry;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 订单配送历史
 * @author Damon S.
 * @version v1.0.1
 * @date 2019年11月01日 15:46
 */
@Entity
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_order_delivery", catalog = "db_kylin_artwork")
public final class OrderDeliveryEntry extends BaseEntry implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long expressId;

    @Column(name = "order_address_id")
    private Long orderAddressId;

    @Column(name = "express_no")
    private String expressNo;

    @Column
    private String location;

    @Column(columnDefinition = "TINYINT")
    private Integer state;
}
